/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

/**
 * @author Carsten Komnik
 * @version 0.1
 */
public class myDVC extends MIDlet implements CommandListener {
    private Command exitCommand;
    private Command okCommand;
    private Display display;
    private Form form;
// sss
    //
    public myDVC() {
        display = Display.getDisplay(this);
        form = new Form("myDVC 1.0");

        // Anzeige am Handy
        form.append("IPSC Auswertung\n");
        // text field
        TextField txtSeconds = new TextField("Sekunden:", "", 2, 0);
        txtSeconds.setConstraints(TextField.DECIMAL);
        form.append(txtSeconds);
        TextField txtHundreds = new TextField("Hunderstel:", "", 2, 0);
        txtHundreds.setConstraints(TextField.DECIMAL);
        form.append(txtHundreds);
        TextField txtAlpha = new TextField("Alphas:", "", 2, 0);
        txtAlpha.setConstraints(TextField.DECIMAL);
        form.append(txtAlpha);
        TextField txtCharly = new TextField("Charlies:", "", 2, 0);
        txtCharly.setConstraints(TextField.DECIMAL);
        form.append(txtCharly);
        TextField txtDelta = new TextField("Deltas:", "", 2, 0);
        txtDelta.setConstraints(TextField.DECIMAL);
        form.append(txtDelta);




        // Midlet-beenden-Button
        exitCommand = new Command("Schliessen", Command.EXIT, 1);
        form.addCommand(exitCommand);
        form.setCommandListener(this);
        okCommand = new Command("OK", Command.OK, 1);
        form.addCommand(okCommand);
        form.setCommandListener(this);
    }


    public void startApp() {
        display.setCurrent(form);
    }

    public void commandAction(Command cmd, Displayable disp) {
        if (cmd == exitCommand) {
            destroyApp(false);
            notifyDestroyed();
        }
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }
}
